import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class HttpServer {
    private ServerSocket serverSocket = null;
    public HttpServer(int port) throws IOException{
        serverSocket = new ServerSocket(port);
    }
    public void start() throws IOException{
        System.out.println("服务器启动");
        ExecutorService executorService= Executors.newCachedThreadPool();
        while (true){
            Socket clientSocket = serverSocket.accept();

        }
    }
}
